home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / PRGMMING / PBC30.ZIP / GETLABL2.BAS < prev    next >
Encoding:
BASIC Source File  |  1994-11-12  |  674 b   |  19 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        PBClone  Copyright (c) 1990-1994  Thomas G. Hanlin III        |
  4. '   |                                                                      |
  5. '   +----------------------------------------------------------------------+
  6.  
  7.  
  8. DECLARE SUB GetLabel (Drive$, Label$, LabelLen%, ErrCode%)
  9.  
  10. FUNCTION GetLabel2$ (Drive$)
  11.    Label$ = SPACE$(11)
  12.    GetLabel Drive$, Label$, LLen%, ErrCode%
  13.    IF ErrCode% THEN
  14.       GetLabel2$ = ""
  15.    ELSE
  16.       GetLabel2$ = LEFT$(Label$, LLen%)
  17.    END IF
  18. END FUNCTION
  19.